package interfaceLearn;

import javax.swing.*;

/**
 * @Author Mr.Wen
 * @Version 1.0
 */
public interface Inter1 {
    public static final int a = 0;

    /*JDK8特产静态方法*/
    public static void test1() {
        System.out.println("你好👋");
    }
    /*默认方法,但要有方法体*/
    public default void test2() {
        System.out.println("Inter1默认👋");
    }
    /*JDK9新特新,定义私有方法*/
    /*private void privateMethod() {
        System.out.println();
    }*/
}
